package com.example.WebSocketDemo.bean;

public class Message {
    private String id;
    private String fromUser;
    private String messageContent;
    private String toUser;
    private String sendTime;
    private int messageType;
    private String chatType;
    private String profilePhoto;
    private String nickname;

    public Message() {
    }

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getFromUser() {
        return fromUser;
    }

    public void setFromUser(String fromUser) {
        this.fromUser = fromUser;
    }

    public String getMessageContent() {
        return messageContent;
    }

    public void setMessageContent(String messageContent) {
        this.messageContent = messageContent;
    }

    public String getToUser() {
        return toUser;
    }

    public void setToUser(String toUser) {
        this.toUser = toUser;
    }

    public String getSendTime() {
        return sendTime;
    }

    public void setSendTime(String sendTime) {
        this.sendTime = sendTime;
    }

    public int getMessageType() {
        return messageType;
    }

    public void setMessageType(int messageType) {
        this.messageType = messageType;
    }

    public String getChatType() {
        return chatType;
    }

    public void setChatType(String chatType) {
        this.chatType = chatType;
    }

    public String getProfilePhoto() {
        return profilePhoto;
    }

    public void setProfilePhoto(String profilePhoto) {
        this.profilePhoto = profilePhoto;
    }

    public String getNickname() {
        return nickname;
    }

    public void setNickname(String nickname) {
        this.nickname = nickname;
    }

    public Message(String id, String fromUser, String messageContent, String toUser, String sendTime, int messageType, String chatType, String profilePhoto, String nickname) {
        this.id = id;
        this.fromUser = fromUser;
        this.messageContent = messageContent;
        this.toUser = toUser;
        this.sendTime = sendTime;
        this.messageType = messageType;
        this.chatType = chatType;
        this.profilePhoto = profilePhoto;
        this.nickname = nickname;
    }

    @Override
    public String toString() {
        return "Message{" +
                "id='" + id + '\'' +
                ", fromUser='" + fromUser + '\'' +
                ", messageContent='" + messageContent + '\'' +
                ", toUser='" + toUser + '\'' +
                ", sendTime='" + sendTime + '\'' +
                ", messageType=" + messageType +
                ", chatType='" + chatType + '\'' +
                ", profilePhoto='" + profilePhoto + '\'' +
                '}';
    }
}
